/* LAYOUT */
:root {
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.25rem);
  --space-xs: clamp(0.5rem, 0.4rem + 0.5vw, 0.75rem);
  --space-s : clamp(0.75rem, 0.65rem + 0.5vw, 1rem);
  --space-m : clamp(1rem, 0.9rem + 0.5vw, 1.5rem);
  --space-l : clamp(1.5rem, 1.3rem + 1vw, 2.5rem);
}

.wrapper { max-width: 900px; margin: auto; padding: var(--space-l) var(--space-m); }

/* NAVBAR */
#navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  gap: 1rem;
  align-items: center;
  padding: var(--space-s) var(--space-m);
  background: #ffffffee;
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 4px rgba(0,0,0,.08);
}
#navbar a { color: #0077ff; font-weight: 600; text-decoration: none; }
#navbar a:hover { text-decoration: underline; }

/* SECTIONS */
section {
  margin-bottom: var(--space-l);
  padding: var(--space-m);
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 2px 6px rgba(0,0,0,.05);
  animation: fadeUp 0.7s ease-out both;
  animation-timeline: view();
  animation-range: entry 15% cover 50%;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(30px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* CARD GRID */
.card-grid {
  display: grid;
  gap: var(--space-m);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}
.card { padding: var(--space-m); border: 1px solid #e5e5e5; border-radius: 8px; }

/* BUTTONS */
.btn {
  display: inline-block;
  margin-top: var(--space-s);
  padding: var(--space-s) var(--space-m);
  background: #0077ff;
  color: #fff;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  cursor: pointer;
  transition: background .25s;
}
.btn:hover { background: #005ed1; }

/* HERO */
.hero { text-align: center; margin-bottom: var(--space-l); }
.hero img { margin: 0 auto var(--space-m); max-width: 200px; }
.hero h1 { font-size: 2rem; margin-bottom: .25em; }
